//
//  MembersCenterViewController.m
//  XingMei
//
//  Created by 姚琪 on 2019/3/28.
//  Copyright © 2019年 钱金军. All rights reserved.
//

#import "MembersCenterViewController.h"

@interface MembersCenterViewController ()

@end

@implementation MembersCenterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavTitleText:@"会员中心"];
    
}
-(void)setNavTitleText:(NSString *)title{
    UIView *bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, Height_NavBar + 180)];
    bgView.layer.contents = (__bridge id _Nullable)([UIImage imageNamed:@""].CGImage);
    [self.view addSubview:bgView];
    
    UIView *HeaderView = [[UIView alloc]init];
    HeaderView.backgroundColor = rgb(244, 244, 244);
    HeaderView.frame = CGRectMake(0, 0, KScreenWidth, Height_NavBar);
    
    UIButton *blackBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [blackBtn setImage:[UIImage imageNamed:@"pay_icon_3"] forState:0];
    [blackBtn addTarget:self action:@selector(black) forControlEvents:UIControlEventTouchUpInside];
    blackBtn.frame = CGRectMake(0, Height_StatusBar, 54, 44);
    [HeaderView addSubview:blackBtn];
    float WIDTH = KScreenWidth - blackBtn.right - 54 - 10;
    //lable
    UILabel *lable=[[UILabel alloc]initWithFrame:CGRectMake(blackBtn.right + 10, Height_StatusBar, WIDTH, 44)];
    lable.textAlignment = NSTextAlignmentCenter;
    //    lable.textColor = [UIColor whiteColor];
    lable.textColor = rgb_51;
    [HeaderView addSubview:lable];
    lable.centerXv = HeaderView.centerXv;
    lable.text=title;
    lable.font=[UIFont boldSystemFontOfSize:18];
    [self.view addSubview:HeaderView];
}
-(void)black{
    [self.navigationController popViewControllerAnimated:YES];
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
